
@echo off
if not exist release mkdir release

set ESB_HOME=C:\esb\build\470\wso2esb-4.7.0

if "%ESB_HOME%"=="" goto no_esb_home
if not exist %ESB_HOME%\repository\components\plugins\ goto no_esb_home
if not exist %ESB_HOME%\repository\components\patches\patch0003 mkdir %ESB_HOME%\repository\components\patches\patch0003
del %ESB_HOME%\repository\components\patches\patch0003\*.jar
copy release\*.jar %ESB_HOME%\repository\components\patches\patch0003 /Y

echo "success"

goto finish_cp

:no_esb_home
echo "please set ESB_HOME to your wso2esb 4.7.0 directory."

:finish_cp

@echo on
